package com.example.product.controller;

import com.example.product.service.MoneyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @Autowired
    private MoneyService moneyService;

    @GetMapping("/test")
    public Object test(){
        return "1";
    }

    @GetMapping("/add")
    public Object add(Integer stuId,Integer mm){
        moneyService.add(stuId,mm);
        return "ok";
    }
}
